<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>flex-shrink属性应用</title>
		<style type="text/css">
			.box{
				width: 200px;
				height: 100px;
				margin-bottom: 10px;
				border: 3px solid red;
				display: flex;	  
			}
			.box div{
				width: 100px;
				height: 40px;
				border: 1px solid blue;
			}
			/*box1中第3项的flex-shrink值为0，其他的flex-shrink都为1*/
			.box1 div:nth-of-type(3){flex-shrink:0;}
			/*box2中第1项flex-shrink值为1，第2项flex-shrink值为2，第3项flex-shrink值为3*/
			.box2 div:nth-of-type(2){flex-shrink:2;}
			.box2 div:nth-of-type(3){flex-shrink:5;}
			
		</style>
	</head>
	<body>
		<div class="box box1">
			<div>1</div>
			<div>2</div>
			<div>3</div>
		</div>
		<div class="box box2">
			<div>1</div>
			<div>2</div>
			<div>3</div>
		</div>
	</body>
</html>
